<template>
    <div class="empty">
        <el-empty :description="empty">
            <el-button type="primary" @click="home">返回首页</el-button>
            <el-button @click="reload">刷新页面</el-button>
        </el-empty>
    </div>
</template>

<script lang="ts" setup>
import router from '@/routers'

const empty = '它好像失踪了，您可以选择以下操作'
const home = async () => {
    await router.push('/')
}

const reload = () => {
    location.reload()
}
</script>
